package com.tanhua.manager.service;

import com.tanhua.domain.db.Log;
import com.tanhua.dubbo.api.db.LogApi;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogService {

    @DubboReference
    private LogApi logApi;

    public void save(Log log) {
        logApi.save(log);
    }

    public void analysis(String todayStr) {
        logApi.analysis(todayStr);

    }
}
